package com.zr.command.service.impl;

import com.zr.command.domain.EimCommandSchedule;
import com.zr.command.mapper.EimCommandScheduleGroupLeaderMapper;
import com.zr.command.service.EimCommandScheduleGroupLeaderService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;


@Service
public class EimCommandScheduleGroupLeaderServiceImpl implements EimCommandScheduleGroupLeaderService {

    @Resource
    private EimCommandScheduleGroupLeaderMapper eimCommandScheduleGroupLeaderMapper;

    /**
     * 获取组员全部信息
     * 需求模块：APP
     */
    @Override
    public List<EimCommandSchedule> selectEimCommandScheduleLeaderList(EimCommandSchedule eimCommandSchedule) {
        return eimCommandScheduleGroupLeaderMapper.selectEimCommandScheduleLeaderList(eimCommandSchedule);
    }

    /**
     * 获取单个组员任务信息
     * 需求模块：APP组长任务分配
     */
    @Override
    public List<EimCommandSchedule> selectEimCommandscheduleOfMember(EimCommandSchedule eimCommandSchedule) {
        return eimCommandScheduleGroupLeaderMapper.selectEimCommandscheduleOfMember(eimCommandSchedule);
    }

    /**
     * 获取组员任务数量
     * 需求模块：APP组长任务分配
     */
    @Override
    public List<HashMap<String, Integer>> scheduleCountList(EimCommandSchedule eimCommandSchedule) {
        return eimCommandScheduleGroupLeaderMapper.scheduleCountList(eimCommandSchedule);
    }

}
